<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
<div th:if="${success}"th:text="${success}"></div>
<div th:if="${error}"th:text="${error}"></div>
<form action="/register" method="post"th:object="${user}">
    账号<input type="text" name="username">
    密码<input type="password" name="password">
    性别<input type="radio" name="sex" value="男">男
    <input type="radio" name="sex" value="女">女
    <input type="submit" value="注册">
</form>
</body>
</html>